package com.bjpowernode.services;

import java.util.TreeSet;

/**
 * ClassName:MyTest
 * Package:com.bjpowernode.services
 * Description: 描述信息
 *
 * @date:2022/4/21 18:12
 * @author:动力节点
 */
public class MyTest {

    public static void main(String[] args) {
        TreeSet<Integer> ids=new TreeSet<>();

        for (int i = 1000; i <=1010 ; i++) {
            ids.add(i);
        }
        System.out.println(ids.size());
        //取出第一个
        Integer first = ids.pollFirst();
        System.out.println(first);
        System.out.println(ids.size());

    }
}
